<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>052-图片垂直居中.html</title>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		.box{
			width: 400px;
			height: 400px;
			line-height: 400px;
			border: 1px solid #000;
			margin:200px auto;
		}
		img{
			/*vertical-align: baseline;*/
			/*vertical-align: middle;*/
			/*vertical-align: top;*/
			/*vertical-align: text-top;*/
			/*vertical-align: bottom;*/
			vertical-align: text-bottom;
		}
	</style>
</head>
<body>
	<div class="box">是文字
		<img src="../photo/fennu.jpg" alt="">
	</div>
</body>
</html>